package com.flexcloudsdk.services.capabilities
{
	import mx.rpc.AbstractOperation;
	import mx.rpc.events.FaultEvent;
	import mx.rpc.events.ResultEvent;
	import mx.rpc.remoting.RemoteObject;
	
	public class CloudCapabilities extends RemoteObject
	{
		var lastResult:Object;
		var lastError:Object;
		
		public function CloudCapabilities(destination:String="CloudCapabilities")
		{
			super(destination);
			addEventListener(FaultEvent.FAULT,   faultHandler);
			addEventListener(ResultEvent.RESULT, resultHandler);
		}
		
		public function resultHandler(event:ResultEvent):void
		{
			trace(event.result.toString());
			lastResult = event.result;
		}
		
		public function faultHandler(event:FaultEvent):void
		{
			trace(event.fault.toString());
			lastError = event.fault;
		}


		
	}
}